package cn.edu.cdu.farmdeal.mapper;

import cn.edu.cdu.farmdeal.domain.Address;
import cn.edu.cdu.farmdeal.domain.AddressExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper

public interface AddressMapper {
    /***
     * 检查
     * @param userid
     */
   Address checkAddress(String userid);
    /**
     * 保存地址
     * @param address
     * @return
     */
    int insertAdd(@Param("address") Address address);

    int countByExample(AddressExample example);

    int deleteByExample(AddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Address record);

    int insertSelective(Address record);

    List<Address> selectByExample(AddressExample example);

    Address selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Address record, @Param("example") AddressExample example);

    int updateByExample(@Param("record") Address record, @Param("example") AddressExample example);

    int updateByPrimaryKeySelective(Address record);

    int updateByPrimaryKey(Address record);
}